package com.example.dao;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.entity.UserPO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserDao extends BaseMapper<UserPO> {
    void deleteUser(UserPO user);

    List<UserPO> selectUser(UserPO user);

    @DS("first")
    UserPO get1ById(Integer id);
    @DS("second")
    UserPO get2ById(Integer id);
    @DS("first")
    void insert01DB(UserPO user02);
    @DS("second")
    void insert02DB(UserPO user02);
}
